package java3_23.Zoo;

public abstract class Animal {
    private String name;
    private String sex;
    private String type;

    public Animal(){

    }

    public Animal(String name, String sex, String type) {
        this.name = name;
        this.sex = sex;
        this.type = type;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getSex() {
        return sex;
    }

    public void setSex(String sex) {
        this.sex = sex;
    }

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }


    public abstract void eat();

    public abstract void play();
}

